<%@ page language="java" pageEncoding="UTF-8"%>
<!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- 工具条、LOGO、导航菜单 -->
      <h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
      <!-- Logo (221px * 40px) -->
      <a href="${pageContext.request.contextPath }/admin/main/main.jsp"><img id="logo" src="${pageContext.request.contextPath }/admin/images/logo.png" alt="Simpla Admin logo" /></a>
      <!-- 个人信息连接 -->
      <div id="profile-links"> 你好, <a href="#" title="编辑个人信息">${adminUser.username }</a><br />
        <br />
        <a href="${pageContext.request.contextPath }" target="_blank" title="打开前台页面">前台页面</a> | <a href="${pageContext.request.contextPath }/admin/userLogin!logOut" title="退出系统">退出</a> </div>
      <ul id="main-nav">
        <!-- 可折叠菜单 -->
        <li>
          <a id="m1" href="#" class="nav-top-item">订单信息</a>
          <ul>
          	<li><a id="m11" href="${pageContext.request.contextPath }/admin/ordermanager!list?state=0&gopage=alllist">所有订单信息</a></li>
            <li><a id="m12" href="${pageContext.request.contextPath }/admin/ordermanager!list?state=1&gopage=nopaylist">未付款订单</a></li>
            <li><a id="m13" href="${pageContext.request.contextPath }/admin/ordermanager!list?state=2&gopage=payist">已付款订单</a></li>
            <li><a id="m14" href="${pageContext.request.contextPath }/admin/ordermanager!list?state=3&gopage=passlist">过期订单</a></li>
          </ul>
        </li>
        <li> 
          <a id="m2" href="#"  class="nav-top-item">商品信息 </a>
          <ul>
            <li><a id="m21" href="${pageContext.request.contextPath }/admin/foodManager!toAdd">添加新的商品</a></li>
            <li><a id="m22" href="${pageContext.request.contextPath }/admin/foodManager!list">管理商品信息</a></li>
            <li><a id="m23" href="${pageContext.request.contextPath }/admin/food/addfoodtype.jsp">添加商品类型</a></li>
            <li><a id="m24" href="${pageContext.request.contextPath }/admin/foodTypeManager!list">管理商品类型</a></li>
          </ul>
        </li>
        <li><a id="m3" href="#" class="nav-top-item">公司管理</a>
          <ul>
            <li><a id="m31" href="${pageContext.request.contextPath }/admin/com/add.jsp">添加公司</a></li>
            <li><a id="m32" href="${pageContext.request.contextPath }/admin/company!list">公司列表</a></li>
            <li><a id="m33" href="#">统计</a></li>
          </ul>
        </li>
        <li> <a id="m4" href="#" class="nav-top-item">人员管理</a>
          <ul>
            <li><a id="m41" href="${pageContext.request.contextPath }/admin/userManager!toAdd">添加人员</a></li>
            <li><a id="m42" href="${pageContext.request.contextPath }/admin/userManager!list">人员列表</a></li>
          </ul>
        </li>
        <li> <a id="m5" href="#" class="nav-top-item">统计</a>
          <ul>
            <li><a id="m51" href="#">商品信息统计</a></li>
            <li><a id="m52" href="#">公司相关信息统计</a></li>
            <li><a id="m53" href="#">人员信息统计</a></li>
            <li><a id="m54" href="#">订单</a></li>
          </ul>
        </li>
        <li> <a id="m6" href="#" class="nav-top-item">系统设置</a>
          <ul>
            <li><a id="m61" href="#">常用设置</a></li>
            <li><a id="m62" href="#">设计</a></li>
            <li><a id="m63" href="#">个人信息</a></li>
            <li><a id="m64" href="#">权限</a></li>
             <li><a id="m65" href="${pageContext.request.contextPath }/admin/sysset/updatepwd.jsp">密码修改</a></li>
          </ul>
        </li>
      </ul>
      <!-- End #main-nav -->
    </div>
  </div>
<script type="text/javascript">
<!--
var code = '${param.mid}';
if(code.length>1){
	var rootEleId = code.substring(0, 2);
	document.getElementById(rootEleId).className="nav-top-item current";
	document.getElementById(code).className="current";
}
//-->
</script>
  <!-- End #sidebar -->